package com.sgb.kjwl.api.service;

import com.sgb.kjwl.model.ZulinMenuEntity;
import com.swgk.core.view.entity.MenuEntity;
import com.sgb.kjwl.model.entity.lease.LeaseListEntity;
import com.swgk.core.view.entity.VideoListEntity;
import com.swgk.core.base.model.entity.ListResponse;
import com.swgk.core.base.model.entity.BaseEntity;
import com.swgk.core.base.model.factory.BaseUrlInterceptor;

import java.util.List;
import java.util.Map;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.Headers;
import retrofit2.http.POST;
import retrofit2.http.Query;

public interface HomeLeaseAPI {
    //租赁首页-分类菜单
    @POST("v1/app/machinery/menu")
    Call<BaseEntity<List<MenuEntity>>> getMenu();

    //租赁首页-分类菜单
//    @POST("v1/app/machinery/getHomeMenu")
//    Call<BaseEntity<List<List<ZulinMenuEntity>>>> getZulinMenu();
    @Headers({BaseUrlInterceptor.HEADERS_URL_ZL,"tokenType:pc"})
    @GET("v1/app/leasepublic/getAppHomeMenuFinalVersion")
    Call<BaseEntity<List<List<ZulinMenuEntity>>>> getLeaseHomeMenu(@Query("type") int type);

//    //租赁首页-推荐-机械列表
//    @POST("v1/app/machinery/wantList")
//    Call<BaseEntity<ListResponse<List<ShowMachineEntity>>>> getShowMechanics(@Body Map map);
//
//    //租赁首页-推荐-设备列表
//    @POST("v1/app/equipment/rentList")
//    Call<BaseEntity<ListResponse<List<ShowDeviceEntity>>>> getShowDevice(@Body Map map);
//
//    //租赁首页-推荐-车辆
//    @POST("v1/app/car/wantList")
//    Call<BaseEntity<ListResponse<List<ShowCarEntity>>>> getShowCar(@Body Map map);
//
//    //租赁首页-推荐-房产
//    @POST("v1/app/estateRent/wantList")
//    Call<BaseEntity<ListResponse<List<ShowHouseEntity>>>> getHouse(@Body Map map);
//
//    //租赁首页-推荐-土地
//    @POST("v1/app/landlease/getLandRecommend")
//    Call<BaseEntity<ListResponse<List<ShowLandEntity>>>> getShowLand(@Body Map map);
//
//    //租赁首页-推荐-工厂
//    @POST("v1/app/factory/homeRecommendList")
//    Call<BaseEntity<ListResponse<List<ShowFactoryEntity>>>> getShowFactory(@Body Map map);
//
//    //租赁首页-推荐-农机
//    @POST("v1/app/farmMachinery/homeRecommendList")
//    Call<BaseEntity<ListResponse<List<ShowFarmEntity>>>> getShowFarm(@Body Map map);

    //租赁首页-热门推荐
    @Headers({BaseUrlInterceptor.HEADERS_URL_ZL,"tokenType:pc"})
    @POST("v1/app/leasepublic/getHomeRecommend")
    Call<BaseEntity<ListResponse<List<LeaseListEntity>>>> getHomeRecommend(@Body Map map);

    //租赁首页-视频列表
    @POST("v1/app/collegeV1/getVodListByName")
    Call<BaseEntity<VideoListEntity>> getHomeVideoList(@Body Map map);
}
